from messAround.model.weibo import WeiboHotModel
import messAround.util.help as util


# 微博热门
class WeiboHotPipeline(object):

    @staticmethod
    def process_item(item, spider):
        return util.make_write_data({
            'category': item["category"],
            'title': item["title"],
            'link': item["link"],
            'hot_index': item["hot_index"],
        }, item, WeiboHotModel)
